package com.yy.permissions_general.module.system.aopLog.service.impl;

import com.yy.permissions_general.module.system.aopLog.entity.SysLog;
import com.yy.permissions_general.module.system.aopLog.mapper.SysLogMapper;
import com.yy.permissions_general.module.system.aopLog.service.SysLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * <p>
 * 系统日志表 服务实现类
 * </p>
 *
 * @author YY
 * @since 2021-08-04
 */
@Service
public class SysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> implements SysLogService {
    /**
    * 分页查询列表
    * @param sysLog
    * @return
    */
    @Override
    public  Page<SysLog>selectPageList(SysLog sysLog, int limit, int page)  {
        Page pageContext = new Page(page,limit);
        Page<SysLog> pageList = this.baseMapper.selectPage(pageContext, sysLog);
        return pageList;
    }

}

